package com.stox.core.lifecycle;

import java.lang.Thread.UncaughtExceptionHandler;

import com.stox.core.ui.swing.util.ThrowableReporter;

public class StoxUncaughtExceptionHandler implements UncaughtExceptionHandler {

	@Override
	public void uncaughtException(Thread t, Throwable e) {
		ThrowableReporter.report(e);
		e.printStackTrace();
		System.exit(0);
	}

}
